package com.cloud.pole.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cloud.pole.api.user.BaseUserApi;
import com.cloud.pole.common.configuration.FeignConfiguration;
import com.cloud.pole.common.constant.ApiConstant;
import com.cloud.pole.common.msg.ApiRestResponse;

import javax.servlet.http.HttpServletRequest;


/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-21 8:11
 */
@FeignClient(value = ApiConstant.USER_SERVICE_ID)
public interface IBaseUserService {

  @RequestMapping(value="/api/user/validate",method = RequestMethod.GET)
  public ApiRestResponse<Boolean> validate(@RequestParam("token") String token);
}
